package com.alks.yn_zs.mapper;


import com.alks.entity.data.page.PageParam;
import com.alks.yn_zs.data.dto.PcStitchStockDto;
import com.alks.yn_zs.data.vo.StitchStockVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;

@Mapper
public interface StitchUpperShowMapper {


    /*鞋面日出入库状况*/
    List<StitchStockVO>  getDayStitchInOutQty(@Param("companyId") String companyId, @Param("yesterday") LocalDate yesterday);

    /*月出入库状况*/
    List<StitchStockVO> getMonthStitchInOutQty(@Param("companyId") String companyId, @Param("startDate") LocalDate startDate, @Param("endDate") LocalDate endDate);

    /*月出入库明细状况*/
    List<StitchStockVO> getMonthDetailStitchInOutQty(@Param("companyId") String companyId, @Param("startDate") LocalDate startDate, @Param("endDate") LocalDate endDate);

    /*鞋面库存明细*/
    List<PcStitchStockDto> queryStitchStockHead(@Param("pageParam") PageParam pageParam, @Param("companyId") String companyId);

    /*总库存*/
    BigDecimal queryStitchStockSum(@Param("companyId") String companyId);
}
